package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;

import java.util.List;
//分类模块
public interface CategoryMapper extends BaseMapper<Category> {
    //分类列表
    List<Category> findAll();
    //添加分类
    void save(Category category);
    //修改分类
    //int updateById(Category category);
    //查询菜品数量
    long counDishByCategoryId(Long id);
    //查询套餐数量
    long countSetmealByCategoryId(Long id);
    //删除分类
    void deleteById(Long id);
}
